#ifndef DATRAY_H
#define DATRAY_H

#include <QObject>
#include <QWidget>
#include <QSystemTrayIcon>
#include <QMenu>
#include <DASetting.h>
#include <QEvent>
class DATray : public QSystemTrayIcon
{
    Q_OBJECT
public:
    explicit DATray(QWidget *parent = nullptr);
private:
    QWidget *p;
    QMenu *trayMenu;
    DASetting *daSetting;
    void onIconActivated(QSystemTrayIcon::ActivationReason reason);
    bool event(QEvent *event);
};

#endif // DATRAY_H
